﻿using ConfExpert.Forms.Base;
using DevTeam;

using System;
using System.Data;

namespace ConfExpert.Forms.Depo
{
    public partial class AtilSebep : XForm
    {
        DataTable dt;
        public AtilSebep(DataSet dsx)
        {
            InitializeComponent();
            this.dt = dsx.Tables[0];
            if (dsx.Tables[1].Rows.Count > 0)
                this.Text += ". " + dsx.Tables[1].Rows[0][0].ToStr();
        }

        private void AtilSebep_Load(object sender, EventArgs e)
        {
            gridView1.Init(dt);
            gridView1.FormatAsNumber(1, "Qty");
            gridView1.AddSummary("Qty");
            gridView1.MakeReadOnly();
            gridView1.BestFitColumns();

        }
    }
}
